home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / pd / netz / ipdial / hangup.ipdial < prev    next >
Text File  |  1995-04-21  |  2KB  |  60 lines

  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ;
  3. ;   Login script for terminating an AmiTCP/SLIP connection using
  4. ;   IPDial
  5. ;
  6. ;   Version 1.1,    06.12.1994
  7. ;
  8. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  9. ;
  10. ;   The line below *must* be present and *must* be the first command
  11. ;   line in the script. It specifies the device and the protocol to
  12. ;   use. (Possible protocols are 7WIRE ( =RTSCTS), XONXOFF or NONE.)
  13. ;   You may omit the protocol, in which case the defaults of the
  14. ;   serial.device are used.
  15. ;
  16. ;   Be sure, that the parameters you are using in this script are the
  17. ;   same as used for initializing AmiTCP/IP!
  18.  
  19.     DEVICE serial.device 7WIRE UNIT 0
  20.  
  21.  
  22. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  23. ;
  24. ;   Certain settings (Note, that these override the respective settings
  25. ;   of the serial.prefs.)
  26. ;
  27. ;   Possible settings are:
  28. ;       BAUD            Baudrate, integer
  29. ;       DATABITS        number of data bits, integer
  30. ;       STOPBITS        number of stop bits, integer
  31. ;       BUFSIZE         Read buffer size, integer
  32. ;       PARITY          one of NONE, ODD or EVEN
  33. ;
  34. ;   These are scanned with ReadArgs(), thus you can either use the syntax
  35. ;       set BAUD=38400
  36. ;   or, if you prefer, this version
  37. ;       set BAUD 38400
  38. ;   In the first case, however, it is important, that you omit blanks.
  39. ;
  40.  
  41.     set BAUD=38400 DATABITS=8 STOPBITS=1 BUFSIZE=4096
  42.  
  43. ;   Possible settings in the following line are:
  44. ;       NONE EVEN ODD
  45.  
  46.     set PARITY=NONE
  47.  
  48.  
  49. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  50.  
  51. ;   The following string will make the modem listening for commands again.
  52. DELAY 2
  53. SEND +++
  54.  
  55. ;   Now tell the modem to disconnect
  56. DELAY 2
  57. SEND ATH0\r
  58. ECHO "Disconnected.\n"
  59. EXIT 0
  60.